<?php

namespace View;

class PageView
{
  //Tar emot och placerar fem HTML strängar i ett HTML5 dokument
  //Retunerar HTML5 dokument
  public function GetHTMLPage($title, $login, $content, $subcontent, $footer) 
  {
    
    $html = "
			<!doctype html> 
				<html>
					<head>
						<meta charset='UTF-8'>
						<title>$title</title>
						<link rel='stylesheet' href='Files/Css/style.css' type='text/css' />
					</head>						
					<body>
					 
						<div id='loginDisplay'>
							$login
						</div>
						
						<div id='wrapper'>
							<header>	
							 </header>		
								<nav>
									<ul class='menu'>
									<li><a href='?'>Home</a></li>
									<li><a href='?Page=About'>About</a></li>
									  </ul>							   
								       </nav>	
								       <div id='container'>	
									   <div id='content'>	
										$content
									  </div>	
									 <div id='subcontent'>
									 $subcontent	
								   </div>
								</div>													
							  <footer>
							  $footer							
							</footer>							
						</div>
					    <script src='Files/Script/jQuery.js' type='text/javascript'></script>
					    <script src='Files/Script/deleteConfirm.js' type='text/javascript'></script>																	
					</body>					
				</html>";
        
    return $html;
  }
  
}

?>